﻿#ifndef CONFIG_H
#define CONFIG_H
#include <QSettings>
#include <QDir>
#include <QFileInfo>
#include <QDebug>
#include <map>
#include "common/common.h"
#include <QPair>

class Config
{
public:
    static bool m_sWriteAbled;
    static bool CheckIniPath();
    static bool readUserData(QList<User>& list_user);
    static bool readUrl(QString& url);
    //static bool writeUserData(const QList<User>& list_user);
    static int GetConfigIntData(const QString &section, const QString &key);
    static long long GetConfigLongLongData(const QString& section, const QString& key);
    static QString GetConfigStringData(const QString &section, const QString &key);
    static float GetConfigFloatData(const QString& section, const QString& key);
    static void WriteStringToConfig(const QString &section, const QString &key, const QString &value);
private:

};

#endif
